//
//  LaunchNavViewController.swift
//  test-ios
//
//  Created by wyz5204 on 2023/2/25.
//

import UIKit

class LaunchNavViewController: UINavigationController, UIGestureRecognizerDelegate {

    override func viewDidLoad() {
        super.viewDidLoad()

        navigationBar.isTranslucent = false
        
        //设置右滑返回手势的代理为自身
        weak var weakSelf = self
        if self.responds(to: #selector(getter: interactivePopGestureRecognizer)) {
            self.interactivePopGestureRecognizer?.delegate = weakSelf
        }
        
        let naviBar = UINavigationBar.appearance()
        let shadow = NSShadow.init()
        shadow.shadowOffset = CGSize.zero
        naviBar.titleTextAttributes = [NSAttributedString.Key.font: UIFont.systemFont(ofSize: 15, weight: .regular), NSAttributedString.Key.shadow: shadow, NSAttributedString.Key.foregroundColor: UIColor.gl_title]
        naviBar.setBackgroundImage(UIColor.gl_white.glImage(CGSize.init(width: SCREEN_WIDTH, height: NAVIGATION_BAR_HEIGHT)), for: .default)
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destination.
        // Pass the selected object to the new view controller.
    }
    */

}
